import random

from django.shortcuts import render, render_to_response


# Create your views here.


def Zhilian(request):
    if request.method == "GET":
        return render_to_response('WebDataChart_zhil.html')
    if request.method == "POST":
        num = random.randint(0, 5)
        return num

def LagouStart(request):
    #启动拉钩的爬虫进程
    #
    if request.method == "GET":
        return render_to_response('WebDataChart_zhil.html')
    if request.method == "POST":
        num = random.randint(0, 5)
        return num